﻿
using System;
using System.Data;
using NetCore.ORM;
namespace NetCore.Code.Model
{
    /// <summary>
    /// 字段映射关系
    /// </summary>
    [Table("CODE_DbType", IsDeleted = true, IsCreated = true, IsLastModify = true, IsTable = true)]
    public partial class DbTypeEntity : EntityBase
    {
        #region 常量
        public const string _TableName = "CODE_DbType";

        /// <summary>
        /// 主键字段名
        /// </summary>
        public const string _PrimaryKeyName = "DbTypeId";

        /// <summary>
        ///  数据库类型
        /// </summary>
        public const string __DbProviderId = "DbProviderId";

        /// <summary>
        ///  字段名称
        /// </summary>
        public const string __DbTypeName = "DbTypeName";

        /// <summary>
        ///  系统类型
        /// </summary>
        public const string __SysDbType = "SysDbType";

        #endregion
        #region 属性
        private int _DbTypeId;
        /// <summary>
        ///  主键
        /// </summary>
        [DbColumn("DbTypeId", LocalName = "主键", ColumnType = "int", Identifier = true, IsPrimaryKey = true, AllowDBNull = false, VaildKey = "IsInt", ControlType = 2)]
        public virtual int DbTypeId
        {
            get
            {
                return _DbTypeId;
            }
            set
            {
                _DbTypeId = value;

            }
        }
        private int _DbProviderId;
        /// <summary>
        ///  数据库类型
        /// </summary>
        [DbColumn("DbProviderId", LocalName = "数据库类型", ColumnType = "int", AllowDBNull = false, IsGridVisible = false, VaildKey = "IsInt", ControlType = 6)]
        public virtual int DbProviderId
        {
            get
            {
                return _DbProviderId;
            }
            set
            {
                SetUpdateField(__DbProviderId);
                _DbProviderId = value;

            }
        }
        private string _DbTypeName;
        /// <summary>
        ///  字段名称
        /// </summary>
        [DbColumn("DbTypeName", LocalName = "字段名称", ColumnType = "string", AllowDBNull = false, MaxLength = 50, ControlType = 1)]
        public virtual string DbTypeName
        {
            get
            {
                return _DbTypeName;
            }
            set
            {
                SetUpdateField(__DbTypeName);
                _DbTypeName = value;

            }
        }
        private int _SysDbType;
        /// <summary>
        ///  系统类型
        /// </summary>
        [DbColumn("SysDbType", LocalName = "系统类型", ColumnType = "int", AllowDBNull = false, VaildKey = "IsInt", ControlType = 6)]
        public virtual int SysDbType
        {
            get
            {
                return _SysDbType;
            }
            set
            {
                SetUpdateField(__SysDbType);
                _SysDbType = value;

            }
        }
        #endregion
    }
}
